package org.cms.nio.handler;

import java.io.IOException;
import org.cms.nio.FrontendConnection;
import org.cms.nio.bufferpool.ByteBufferArray;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description: 
 * @Department:
 * @author andy.lhc
 * @date 2016年6月2日 上午11:43:41 
 */
public class FrontConnectionHandler implements NIOHandler<FrontendConnection> {
  private static final Logger LOGGER = LoggerFactory.getLogger(FrontConnectionHandler.class);
 
  @Override
  public void onConnected(FrontendConnection con) throws IOException {
    LOGGER.debug("onConnected", con);
  }

  @Override
  public void onConnectFailed(FrontendConnection con, Throwable e) {
    LOGGER.debug("onConnectFailed", con);
  }
 
  @Override
  public void onClosed(FrontendConnection con, String reason) {
    LOGGER.debug("onClosed", con);
  }

  
  @Override
  public void handle(FrontendConnection con, ByteBufferArray nioData) {
    LOGGER.debug("handle", con);
    
  }

}
